OBJ = matrixProcessing.o Image.o imageIO.o colorProcessing.o \
	cs.o

AR = ar
INCLUDE = -I../include
all:
	${MAKE} libimage.a

libimage.a: $(OBJ)
	$(AR) rvu $@ $(OBJ)
	ranlib $@

cs.o: cs.cpp
	g++ -c cs.cpp $(INCLUDE)

colorProcessing.o: colorProcessing.cpp
	g++ -c colorProcessing.cpp $(INCLUDE)
	
imageIO.o: imageIO.cpp
	g++ -c imageIO.cpp $(INCLUDE)

matrixProcessing.o: matrixProcessing.cpp
	g++ -c matrixProcessing.cpp $(INCLUDE)

Image.o: Image.cpp
	g++ -c Image.cpp $(INCLUDE)

clean:
	-rm *.o *~ 	